package DecoratorPattern.cake;

public class MilkCake extends CakeDecorator {

    Cake cake;
    
    public MilkCake(Cake cake) {
        this.cake=cake;
    }

    @Override
    public void printDescription() {
        this.cake.printDescription();
        addMilk();
    }
    
    private void addMilk(){//新增加的装饰性的方法
        System.out.println("添加装饰A:Milk");
    }
}